package com.supermarket.product.domain;

import com.supermarket.common.core.annotation.Excel;
import com.supermarket.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品分组对象 product_group
 * 
 * @author supermarket
 * @date 2025-07-23
 */
public class ProductGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分组ID */
    @Excel(name = "分组ID")
    private Long id;

    /** 分组名称 */
    @Excel(name = "分组名称")
    private String groupName;

    /** 排序ID（越小越靠前） */
    @Excel(name = "排序ID", readConverterExp = "越=小越靠前")
    private Long sortId;

    /** 状态（1=启用，0=停用） */
    @Excel(name = "状态", readConverterExp = "1==启用，0=停用")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setGroupName(String groupName) 
    {
        this.groupName = groupName;
    }

    public String getGroupName() 
    {
        return groupName;
    }

    public void setSortId(Long sortId) 
    {
        this.sortId = sortId;
    }

    public Long getSortId() 
    {
        return sortId;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupName", getGroupName())
            .append("sortId", getSortId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
